<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 6.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"ghostlitao.gitee.io","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="实在是受不了 WizNote mac 版本到现在都没有markdown 功能,而且搜索莫名其妙的很慢,搜了一圈,暂时没有什么靠谱便宜的解决方案,觉得还是自己来吧.暂时导出到本地用 nginx 查看.具体的步骤是这样的:  同步所有文章到本地 找到 wizNote存放目录,在我电脑上在  &#x2F;Users&#x2F;--电脑用户---&#x2F;.wiznote&#x2F;---帐号---&#x2F;data下 用一段 python 代码解决">
<meta property="og:type" content="article">
<meta property="og:title" content="WizNote 迁出记录">
<meta property="og:url" content="https://ghostlitao.gitee.io/2019/06/15/WizNote-%E8%BF%81%E5%87%BA%E8%AE%B0%E5%BD%95/index.html">
<meta property="og:site_name" content="去找Todd">
<meta property="og:description" content="实在是受不了 WizNote mac 版本到现在都没有markdown 功能,而且搜索莫名其妙的很慢,搜了一圈,暂时没有什么靠谱便宜的解决方案,觉得还是自己来吧.暂时导出到本地用 nginx 查看.具体的步骤是这样的:  同步所有文章到本地 找到 wizNote存放目录,在我电脑上在  &#x2F;Users&#x2F;--电脑用户---&#x2F;.wiznote&#x2F;---帐号---&#x2F;data下 用一段 python 代码解决">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2019-06-15T05:38:46.000Z">
<meta property="article:modified_time" content="2019-06-15T05:38:46.000Z">
<meta property="article:author" content="Todd">
<meta property="article:tag" content="用不明白的Windows">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://ghostlitao.gitee.io/2019/06/15/WizNote-%E8%BF%81%E5%87%BA%E8%AE%B0%E5%BD%95/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>WizNote 迁出记录 | 去找Todd</title>
  


  <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?d988341c748563d16048e8e7dab0f384";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">去找Todd</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">Todd的博客</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ghostlitao.gitee.io/2019/06/15/WizNote-%E8%BF%81%E5%87%BA%E8%AE%B0%E5%BD%95/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
      <meta itemprop="name" content="Todd">
      <meta itemprop="description" content="把生命浪费在美好的实物上">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="去找Todd">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          WizNote 迁出记录
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-06-15 13:38:46" itemprop="dateCreated datePublished" datetime="2019-06-15T13:38:46+08:00">2019-06-15</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>实在是受不了 WizNote mac 版本到现在都没有markdown 功能,而且搜索莫名其妙的很慢,搜了一圈,暂时没有什么靠谱便宜的解决方案,觉得还是自己来吧.暂时导出到本地用 nginx 查看.<br>具体的步骤是这样的:</p>
<ol>
<li>同步所有文章到本地</li>
<li>找到 wizNote存放目录,在我电脑上在 <code> /Users/--电脑用户---/.wiznote/---帐号---/data</code>下</li>
<li>用一段 python 代码解决,注意这里面两个位置很重要:   index.db 和 notes&#x2F;* </li>
<li>sqlite 打开 index.db 文件,就能看见所有文档目录结构了.</li>
<li>unzip 所有的 在 sqlite 中的 id标识的文件 到指定的目录里.大致的代码如下<em>里面的账号隐藏掉了</em>:<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br></pre></td><td class="code"><pre><span class="line"># -*- coding:UTF-8 -*-</span><br><span class="line"># !/usr/bin/python</span><br><span class="line"></span><br><span class="line">import sqlite3</span><br><span class="line">import os</span><br><span class="line">import zipfile</span><br><span class="line"></span><br><span class="line">NOTES_PATH = &#x27;/Users/--/.wiznote/--/data/notes/&#x27;</span><br><span class="line">DATABASE = &#x27;/Users/--/.wiznote/--/data/index.db&#x27;</span><br><span class="line">EXPORT_BASE = &quot;/Users/--/Downloads/Note&quot;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">def dealOne(line):</span><br><span class="line">    file_id = &quot;&#123;&quot; + line[0] + &quot;&#125;&quot;</span><br><span class="line">    filename = line[1]</span><br><span class="line">    dir = EXPORT_BASE + line[2]</span><br><span class="line">    url = line[5]</span><br><span class="line">    ext = line[10]</span><br><span class="line">    create_time = line[12]</span><br><span class="line"></span><br><span class="line">    if not os.path.exists(dir):</span><br><span class="line">        print(dir + &quot; does not exist, creating ...&quot;)</span><br><span class="line">        os.makedirs(dir)</span><br><span class="line"></span><br><span class="line">    if os.path.exists(NOTES_PATH + file_id):</span><br><span class="line">        print(NOTES_PATH + file_id + &quot; exist, unziping ...&quot;)</span><br><span class="line">        dir = dir + filename + &quot;/&quot;</span><br><span class="line">        os.makedirs(dir)</span><br><span class="line">        zfile = zipfile.ZipFile(NOTES_PATH + file_id, &#x27;r&#x27;)</span><br><span class="line">        zfile.extractall(dir)</span><br><span class="line">        zfile.close()</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">conn = sqlite3.connect(DATABASE)</span><br><span class="line">print(&quot;Opened database successfully&quot;)</span><br><span class="line">cursor = conn.cursor()</span><br><span class="line">cursor.execute(&quot;select * from WIZ_DOCUMENT &quot;)</span><br><span class="line"></span><br><span class="line">data = cursor.fetchall()</span><br><span class="line"></span><br><span class="line">cursor.close()</span><br><span class="line">conn.close()</span><br><span class="line">for line in data:</span><br><span class="line">    dealOne(line)</span><br><span class="line"></span><br></pre></td></tr></table></figure></li>
<li>我本地有 MAMP , 直接把解压出来的 Note 目录结构剪切 到 localhost 指向的位置,然后打开 nginx 的目录浏览功能.<br>增加 <code>autoindex on;</code> 到 location 配置里</li>
</ol>
<p>另外记得加上 <code>charset utf-8;</code> 到 server 配置中,否则中文会有乱码,至此.WizNote 应该就导出到自己的目录里了.</p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/%E7%94%A8%E4%B8%8D%E6%98%8E%E7%99%BD%E7%9A%84Windows/" rel="tag"># 用不明白的Windows</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2019/02/21/%E4%B9%8B%E5%90%8E%E5%86%8D%E7%94%A8node%E6%88%96%E8%80%85%E5%85%B6%E5%AE%83%E5%85%A8%E5%B1%80%E5%91%BD%E4%BB%A4%E4%B8%8D%E5%8F%AF%E7%94%A8/" rel="prev" title="shell - 安装了oh my zsh 之后再用node或者其它全局命令不可用">
      <i class="fa fa-chevron-left"></i> shell - 安装了oh my zsh 之后再用node或者其它全局命令不可用
    </a></div>
      <div class="post-nav-item">
    <a href="/2019/06/25/ADFS-3-0-Oauth2-0/" rel="next" title="ADFS 3.0 + Oauth2.0">
      ADFS 3.0 + Oauth2.0 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Todd"
      src="https://mp-b6a394ba-6e60-4cdf-941a-67c55476595e.cdn.bspapp.com/cloudstorage/43eb35ef-1aed-4d61-9ebb-a777fa49e70a.">
  <p class="site-author-name" itemprop="name">Todd</p>
  <div class="site-description" itemprop="description">把生命浪费在美好的实物上</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">34</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">2</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">7</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/ghostlitao" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;ghostlitao" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 2019 – 
  <span itemprop="copyrightYear">2024</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Todd</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
